package com.todolist.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.user.client.ui.RootPanel;
import com.todolist.client.event.RefreshProjectsEvent;

public class ToDoList implements EntryPoint {
    private SimpleEventBus eventBus = new SimpleEventBus();

    public void onModuleLoad() {
        ToDoListPageWidget toDoListPageWidget = new ToDoListPageWidget(eventBus);
        RootPanel.get().add(toDoListPageWidget);

        eventBus.fireEvent(new RefreshProjectsEvent());
    }
}